var Radio = require("./radio.js");
var inforObj ={"radioName":"music radio","radioNum":"FM:102.2"}
var radio = new Radio(inforObj);
radio.on("start",()=>{
    console.log(radio.radioName +" "+ radio.radioNum +" opened");
})
radio.on("stop",()=>{
    console.log("lalala...");
    console.log(radio.radioName +" "+ radio.radioNum +" closed");
})

setTimeout(()=>{
    radio.emit("start");
},1000);
setTimeout(()=>{
    radio.emit("stop");
},3000)